from utils.client import APIClient
from utils.yaml_config import get_yaml

data = get_yaml('login.yaml')

class Api_Login:


    def __init__(self,client :APIClient):
        self.client = client

    def login(self,index):
            login_data = data['login']['request']
            return self.client.request(login_data['method'],login_data['url'],json=login_data['json'][index])


    